package ogloszenia.widok;

import java.io.Serializable;

public class selekty implements Serializable{

	public static selekty instancja=new selekty();
	public selekty selekty(){
		if(instancja==null)
			instancja=new selekty();
		return instancja;
	}
	private boolean checka=false,checkb=false,checkc=false,
	disablea=false,disableb=false,disablec=false;
	
	public boolean isDisablea() {
		return disablea;
	}

	public void setDisablea(boolean disablea) {
		this.disablea = disablea;
	}

	public boolean isDisableb() {
		return disableb;
	}

	public void setDisableb(boolean disableb) {
		this.disableb = disableb;
	}

	public boolean isDisablec() {
		return disablec;
	}

	public void setDisablec(boolean disablec) {
		this.disablec = disablec;
	}

	public boolean isChecka() {
		return checka;
	}

	public void setChecka(boolean checka) {
		this.checka = checka;
	}

	public boolean isCheckb() {
		return checkb;
	}

	public void setCheckb(boolean checkb) {
		this.checkb = checkb;
	}

	public boolean isCheckc() {
		return checkc;
	}

	public void setCheckc(boolean checkc) {
		this.checkc = checkc;
	}
	public void ustaw(int param) {
		switch (param) {
		case 1:
			disablea=checka=true;
			disableb=checkb=false;
			disablec=checkc=false;
			break;
		case 2:
			disablea=checka=false;
			disableb=checkb=true;
			disablec=checkc=false;
			break;
		case 3:
			disablea=checka=false;
			disableb=checkb=false;
			disablec=checkc=true;
			break;
		}
		System.out.println(checka+ " "+checkb+ " "+checkc);
	}
}
